package com.swotxu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swotxu.common.utils.PageUtils;
import com.swotxu.mall.product.entity.SkuInfoEntity;
import com.swotxu.mall.product.web.vo.SkuItemVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author swotxu
 * @email mr_xudada@163.com
 * @date 2020-12-11 23:04:14
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * sku检索
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 根据skuid，获取对应详情
     * @param skuId
     * @return
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

